import service from "../request.js";

export function getRoleList(data) {
  return service({
    method: "post",
    url: "/role/list",
    data
  });
}
export function updateRole(data) {
  return service({
    method: "post",
    url: "/role/update",
    data
  });
}
export function deleteRole(id) {
  return service({
    method: "get",
    url: `/role/delete/${id}`,
  });
}
export function getRoleMenuById(id) {
  return service({
    method: "get",
    url: `/role/getRoleMenu/${id}`,
  });
}
export function getIds() {
  return service({
    method: "get",
    url: `/menu/ids/`,
  });
}
export function insertRoleMenu(data) {
  return service({
    method: "post",
    url: `/role/insertRoleMenu`,
    data
  });
}